﻿using Windows.UI.Popups;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Prometheus.Binding.Validation;
using Prometheus.Binding.Validation.Rules;

namespace Prometheus.Binding.W8Test
{
    public class TestErrorBorder : ContentControl,IErrorBorder
    {
        public void SetError(proValidationException firstError)
        {
            var messageDialog = new MessageDialog(firstError==null?"ok":firstError.Message,"валидация");
            try
            {
                messageDialog.ShowAsync();
            }
            catch 
            {
                
            }
        }
    }
}